'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function PreventRecursion(Of T)( _ ByVal source As ITreeTraversable(Of T) _ ) As ITreeTraversable(Of T)
'Usage
Dim source As ITreeTraversable(Of T) Dim value As ITreeTraversable(Of T) value = ITreeTraversableExtension.PreventRecursion(Of T)(source)
[Extension()] [NotNull()] public static ITreeTraversable<T> PreventRecursion<T>( ITreeTraversable<T> source )
[Extension()] [NotNull()] public: static ITreeTraversable<T^>^ PreventRecursiongeneric<typename T> ( ITreeTraversable<T^>^ source )
Parameters
- source
- The tree traversable for which the recursion will be prevented.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- T
- The type of objects to traverse.
Return Value
This method never returns null
(Nothing
in Visual Basic).